package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SumArrayWithOffsetIndex {
	public static double sum(double[] input, int offset, int len) {
		double sum = 0;
		for (int i = offset; i < offset + len; i++) {
			sum += input[i];
		}
		return sum;
	}
}
